<template>
  <div class="cq-container">
    <!-- banner -->
    <cq-bannner></cq-bannner>
    <!-- 主体 -->
    <cq-main>
      <div class="cq-con-brand w1160">
        <h2 class="cq-con-title">
          <span class="visib-hid"> 橙品牌</span>
          <img
            src="@/assets/img/title-brand.png"
            width="391"
            height="86"
            alt="brand"
          />
        </h2>

        <ul class="cq-con-list flex flex-between">
          <li
            :class="item.liClassName"
            v-for="item in conListData"
            :key="item.liClassName"
          >
            <div class="con-list-mask">
              <img
                :src="$utils.getImg(item.imgName)"
                width="90"
                height="90"
                alt="cyx"
              />
              <h3 class="c-fff fz28 fw200">橙营销</h3>
              <p class="c-da fz16">营销助力品牌升级</p>
              <btn-more :className="cqConList">了解更多</btn-more>
            </div>
          </li>
        </ul>
      </div>
      <div class="cq-con-energize">
        <h2 class="cq-con-title">
          <span class="visib-hid">用科技为企业赋能</span>
          <img
            src="@/assets/img/title-energize.png"
            width="302"
            height="79"
            alt="energize"
          />
        </h2>
        <div class="cq-energize-swiper w1160">
          <div class="cq-swiper-slider flex flex-between">
            <a href="javascript:;">金融行业</a>
            <a href="javascript:;">互联网行业</a>
            <a href="javascript:;">保险行业</a>
            <a href="javascript:;">汽车行业</a>
            <a href="javascript:;">传媒行业</a>
            <a href="javascript:;">通信行业</a>
          </div>
          <div class="cq-swiper-content">
            <ul class="cq-swiper-pic">
              <li v-for="item in swiperList" :key="item.imgName">
                <h3 class="cq-con-title">
                  <span class="visib-hid">{{ item.title }}</span>
                  <img
                    :src="$utils.getImg(item.imgName)"
                    width="218"
                    height="55"
                    alt="energize"
                  />
                </h3>
                <p>
                  {{ item.tip }}
                </p>
              </li>
            </ul>
            <span
              class="cq-swiper-btn prev icon icon-swiper-prev flex flex-center"
            ></span>
            <span
              class="cq-swiper-btn next icon icon-swiper-next flex flex-center"
            ></span>
          </div>
        </div>
      </div>
      <template #cqConBanner>
        <div class="cq-con-banner">
          <h2 class="fw200">依托橙券，聚焦权益，全面合作</h2>
          <p class="flex flex-center">
            全国服务热线:400-096-xxxx<span class="partition">|</span
            >商务合作专线:156-6806-1789
          </p>
          <btn-more :className="btnBrand">了解更多</btn-more>
        </div>
      </template>
    </cq-main>
  </div>
</template>

<script>
import CqBannner from './components/cq-bannner'
import BtnMore from './components/btn-more'
export default {
  name: 'home-page',
  components: {
    CqBannner,
    BtnMore
  },
  data () {
    return {
      btnBrand: ['btn-brand'],
      cqConList: ['btn-brand', 'bgc-white', 'toggle-show'],
      liClassName: 'list-marketing',
      conListData: [
        {
          title: '橙营销',
          text: '营销助力品牌升级',
          liClassName: 'list-marketing',
          imgName: 'cyx.png'
        },
        {
          title: '橙营销',
          text: '营销助力品牌升级',
          liClassName: 'list-integral',
          imgName: 'cyx.png'
        },
        {
          title: '橙营销',
          text: '营销助力品牌升级',
          liClassName: 'list-financial',
          imgName: 'cyx.png'
        },
        {
          title: '橙营销',
          text: '营销助力品牌升级',
          liClassName: 'list-welfare',
          imgName: 'cyx.png'
        }
      ],
      swiperList: [
        {
          title: '中国联通1',
          imgName: 'title-unicom.png',
          tip: '作为中国的银行卡联合组织，中国银联处于我国银行卡产业的核心和枢纽地位，对我国银行卡产业发展发挥着基础性作用，各银行通过银联跨行交易清算系统。实现了系统间的互联互通，进而使银行卡得以跨银行、跨地区和跨境使用1。'
        },
        {
          title: '中国联通2',
          imgName: 'title-unionpay.png',
          tip: '作为中国的银行卡联合组织，中国银联处于我国银行卡产业的核心和枢纽地位，对我国银行卡产业发展发挥着基础性作用，各银行通过银联跨行交易清算系统。实现了系统间的互联互通，进而使银行卡得以跨银行、跨地区和跨境使用2。'
        },
        {
          title: '中国联通3',
          imgName: 'title-Tencent.png',
          tip: '作为中国的银行卡联合组织，中国银联处于我国银行卡产业的核心和枢纽地位，对我国银行卡产业发展发挥着基础性作用，各银行通过银联跨行交易清算系统。实现了系统间的互联互通，进而使银行卡得以跨银行、跨地区和跨境使用3。'
        }
      ]
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.cq-con-brand {
  padding-top: 240px;
  padding-bottom: 148px;
}

.cq-con-title {
  text-align: center;
}

.cq-con-list {
  padding-top: 66px;
}

.cq-con-list li {
  box-sizing: border-box;
  width: 280px;
  height: 400px;
  background: #fff url(@/assets/img/marketing.jpg) no-repeat center/cover;
  text-align: center;
  transition: 0.3s;
}

.cq-con-list li.list-integral {
  background-image: url(@/assets/img/integral.jpg);
}

.cq-con-list li.list-marketing {
  background-image: url(@/assets/img/marketing.jpg);
}

.cq-con-list li.list-welfare {
  background-image: url(@/assets/img/welfare.png);
}

.cq-con-list > li img {
  padding-top: 108px;
}

.cq-con-list > li h3 {
  padding-top: 38px;
  line-height: 28px;
}

.cq-con-list > li p {
  padding-top: 13px;
  padding-bottom: 24px;
  line-height: 16px;
}

.cq-con-list > li > .con-list-mask {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.38);
}

.cq-con-list .toggle-show {
  display: none;
}

.cq-con-list li:hover {
  z-index: 1;
  position: relative;
  transform: scale(1.15, 1.13);
  padding: 8px 7px;
  box-shadow: 0 0 8px rgba(88, 88, 88, 0.9) inset;
}

.cq-con-list li:hover .con-list-mask {
  border: 1px solid #fff;
  background-color: rgba(255, 255, 255, 0);
}

.cq-con-list li:hover .con-list-mask > p {
  color: #fff;
}

.cq-con-list li:hover .toggle-show {
  display: inline-block;
}

/*==== start energize ====*/
.cq-con-energize {
  box-sizing: border-box;
  background: #fff url(@/assets/img/bg-energize.png) no-repeat center/cover;
  padding-top: 82px;
  padding-bottom: 112px;
}

.cq-energize-swiper {
  padding-top: 69px;
}

.cq-swiper-slider {
  padding-bottom: 68px;
}

.cq-swiper-slider > a {
  width: 181px;
  height: 50px;
  background-color: #fff;
  box-shadow: 0px -1px 21px 0px rgba(192, 192, 192, 0.35);
  border-radius: 25px;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  color: #333;
}

.cq-swiper-slider > a:hover {
  color: #fff;
  background-color: #ff7200;
}

.cq-swiper-content {
  position: relative;
  height: 452px;
}

.cq-swiper-content ul.cq-swiper-pic li {
  position: absolute;
  width: 500px;
  height: 452px;
  background-color: #ffffff;
  box-shadow: 0px -1px 21px 0px rgba(114, 113, 113, 0.3);
}

ul.cq-swiper-pic li:nth-of-type(1) {
  top: 30px;
  left: 50px;
  width: 500px;
  height: 391px;
}

ul.cq-swiper-pic li:nth-of-type(2) {
  z-index: 3;
  top: 0;
  left: 330px;
  width: 500px;
  height: 452px;
}

ul.cq-swiper-pic li:nth-of-type(3) {
  top: 30px;
  left: 610px;
  width: 500px;
  height: 391px;
}

.cq-energize-swiper .cq-swiper-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background-color: #cbccce;
  cursor: pointer;
  opacity: 0.8;
}

.cq-energize-swiper .cq-swiper-btn.prev {
  left: -18px;
}

.cq-energize-swiper .cq-swiper-btn.next {
  right: -18px;
}

.cq-energize-swiper .cq-swiper-btn:hover {
  opacity: 1;
}

.cq-swiper-pic > li:nth-of-type(1) > h3 {
  text-align: left;
  padding-left: 84px;
  padding-top: 93px;
}

.cq-swiper-pic > li:nth-of-type(1) > h3 > img {
  width: 169px;
  height: auto;
}

.cq-swiper-pic > li:nth-of-type(2) > h3 {
  padding-top: 86px;
}

.cq-swiper-pic > li:nth-of-type(3) > h3 {
  text-align: right;
  padding-right: 81px;
  padding-top: 93px;
}

.cq-swiper-pic > li:nth-of-type(3) > h3 > img {
  width: 160px;
  height: auto;
}

.cq-swiper-pic > li > p {
  padding: 60px 40px 0;
  text-indent: 2em;
  text-align: justify;
  line-height: 30px;
  font-size: 14px;
  color: #666;
}

.cq-swiper-active:after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  width: 80px;
  height: 2px;
  background-color: #ff7200;
}

/* bottom banner start */
.cq-con-banner {
  padding: 67px 0;
  background: #fff url(@/assets/img/banner-bottom.png) no-repeat center/cover;
  text-align: center;
  color: #fff;
}

.cq-con-banner > h2 {
  padding-top: 34px;
  font-size: 48px;
  font-family: "\5B8B\4F53";
  letter-spacing: -4px;
  line-height: 48px;
}

.cq-con-banner > p {
  padding: 24px 0 30px 0;
  font-size: 20px;
  line-height: 20px;
}

.cq-con-banner .partition {
  font-size: 16px;
  padding: 0 26px;
}
</style>
